package cn.csust.net2.manager.shared.service;

import cn.csust.net2.manager.shared.po.Vote;
import cn.csust.net2.manager.shared.po.VoteAnswer;
import cn.csust.net2.manager.shared.po.VoteResult;

import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.google.gwt.user.client.rpc.AsyncCallback;



public interface VoteCommonServiceAsync extends BaseServiceAsync{

	void findVotesByPaging(PagingLoadConfig config,AsyncCallback<PagingLoadResult<Vote>> callback);
	
	void findVoteResultsByPaging(PagingLoadConfig config,AsyncCallback<PagingLoadResult<VoteResult> > callback);
	
	void findVoteAnswersByPaging(PagingLoadConfig config,AsyncCallback<PagingLoadResult<VoteAnswer>> callback);
	
//	void saveStudent_VoteByPaging(PagingLoadConfig config,AsyncCallback<Void> callback);
	
	void findStudent_Vote(PagingLoadConfig config,AsyncCallback<PagingLoadResult<Long>> callback);
	
	void findVoteResultsByAnswerID(Long l,AsyncCallback<Integer> callback);
	
	void hasVoteResultsByStudnetNumber(Long l,AsyncCallback<Boolean> callback);
	
}
